var dbConfig = require('../utils/dbconfig')

//获取分类 
getSoftwareType = (req, res) => {
    let sql = 'select * from softwareType';
    var sqlArr = []
    var callBack = (err, data) => {
        if (err) {
            console.log('连接出错', err)
        } else {
            res.send({
                'list': data,

            })

        }
    }
    dbConfig.sqlConnection(sql, sqlArr, callBack)
}

module.exports = {
    getSoftwareType
}